package com.project.pojo.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @Description: 商品评价入参类
 * @Author: zhuchi
 * @CreateDate: 2020/11/6 17:24
 * @Version: 1.0
 */
@Data
@ApiModel(value = "商品评价入参类")
public class ProductOrderEvaluateModel {

    /**
     * 订单ID
     */
    @ApiModelProperty(value = "订单ID")
    @NotNull(message = "请选择要评价的订单")
    private Long productOrderId;

    /**
     * 综合评分
     */
    @ApiModelProperty(value = "综合评分（默认5星）")
    private Integer score = 5;

    /**
     * 评价内容
     */
    @ApiModelProperty(value = "评价内容")
    private String info = "此用户没有添加任何评价";

    /**
     * 评价图片
     */
    private String evaImgs;

}
